package com.coocaa.ops.common.core.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 表映射实体类基类
 * @author tangminghong
 * @date 2020-06-10 17:08
 */

@Data
public class BaseEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer flag;

    private Integer creator;

    private Integer modifier;

    private Date createdDate;

    private Date lastUpdateDate;

    @TableField(exist = false)
    private Boolean duplicateEdit;
    /**
     * 创建人
     */
    @TableField(exist = false)
    private String creatorName;
    /**
     * 更新人名称
     */
    @TableField(exist = false)
    private String modifierName;

}
